package com.allqj.sfx.application.assembler;

/**
 * @author sjw
 * @className DTOAssembler
 * @date 2022/4/16 11:51
 * @description: dto&entity转换器
 */
public interface DTOAssembler<DTO,ENTITY> {
    // from dto to entity
    public ENTITY dto2Entity(DTO dto);
    // from entity to dto
    public DTO entity2DTO(ENTITY entity);
}
